<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        button{
            text-decoration: none;
        }
 #myInput {
        /* background-image: url('images/searchicon.png');  */
        background-position: 10px 12px; /*图片定位 */
        background-repeat: no-repeat; /* 不重复图片 */
        font-size: 16px;
        padding: 12px 20px 12px 40px;
        border: 1px solid #ddd;
        margin-bottom: 12px;
        }
        #myTable {
        border-collapse: collapse;
        width: 100%;
        border: 1px solid #ddd;
        font-size: 18px;
        }
        #myTable th,
        #myTable td {
        text-align: left;
        padding: 12px;
        }
        #myTable tr {
        /* 表格添加边框 */
        border-bottom: 1px solid #ddd;
        }
        #myTable tr.header,
        #myTable tr:hover {
        /* 表头及鼠标移动过 tr 时添加背景 */
        background-color: #f1f1f1;
        }
    </style>
   
                
</head>
<body>
    <input type="text" id="myInput" placeholder="搜索公司..." />
    <table id="myTable">
    <tr class="header">
    <th style="width: 60%">公司名称 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <button id="sheng">升序</button>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <button id="jiang">降序</button></th>
    <th style="width: 40%">国家</th>
    </tr>
    <tr>
    <td>Alfreds Futterkiste</td>
    <td>Germany</td>
    </tr>
    <tr>
    <td>Berglunds snabbkop</td>
    <td>Sweden</td>
    </tr>
    <tr>
        <td>Island Trading</td>
        <td>UK</td>
        </tr>
        <tr>
        <td>Koniglich Essen</td>
        <td>Germany</td>
        </tr>
        </table>
    <script src="test.js">
    </script>
</body>
</html>